package com.bjsxt.chapter6_proxy.staticProxy;

/**
 * @ClassName ProxyStar
 * @Description 代理角色
 * @Author 黑马程序员
 * @Date 16:20 2024/6/21
 * @Version 1.0
 **/
public class ProxyStar implements Star{

    private Star star;

    public ProxyStar(Star star) {
        this.star = star;
    }

    @Override
    public void confer() {
        System.out.println("ProxyStar.confer");
    }

    @Override
    public void signContract() {
        System.out.println("ProxyStar.signContract");
    }

    @Override
    public void bookTicket() {
        System.out.println("ProxyStar.bookTicket");
    }

    @Override
    public void sing() {
        star.sing();
    }

    @Override
    public void collectMoney() {
        System.out.println("ProxyStar.collectMoney");
    }
}
